<?php
namespace Zxf5115\Laravel\Complain\Controllers\Platform;

use Zxf5115\Laravel\Kernel\Controllers\Platform\PlatformController;

/**
 * @author zhangxiaofei [<1326336909@qq.com>]
 * @dateTime 2025-10-08
 *
 * 投诉控制器类
 */
class ComplainController extends PlatformController
{
  /**
   * 允许客户端查询的字段
   */
  protected array $allowParams = [
    'category_id',
    'create_time',
  ];

  /**
   * 关键字查询配置
   */
  protected array $allowKeywordParams = [
    'receive' => 'keyword',
    'match' => [
      'content',
    ]
  ];

  /**
   * 关联预加载配置
   */
  protected array $withRelations = [
    'category',
    'member'
  ];
}
